import URL from '@/config/url'
import utils from '@/utils/utils'

export default {
	YxLoanArchive(params = {}) {
		let data = {
			name:params.name,
			phone:params.phone,
			id_no_front:params.id_no_front,
			id_no_back:params.id_no_back,
			bank_flow:params.bank_flow,
			estate_license:params.estate_license,
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/YxLoanArchive/add', data })
	},
	LoanArchive(params = {}) {
		let data = {
			name:params.name,
			phone:params.phone,
			id_no:params.id_no,
			address:params.address,
			province_id:params.province_id,
			city_id:params.city_id,
			district_id:params.district_id,
			street_id:params.street_id,
			province:params.province,
			city:params.city,
			district:params.district,
			street:params.street,
			condition_option:params.condition_option,
			credit_card_quota:params.credit_card_quota,
			education_graduation_year:params.education_graduation_year,
			education_certificate:params.education_certificate,
			social_insurance_fee:params.social_insurance_fee,
			social_insurance_certificate:params.social_insurance_certificate,
			accumulation_fund_fee:params.accumulation_fund_fee,
			accumulation_fund_certificate:params.accumulation_fund_certificate,
			salary_amount:params.salary_amount,
			salary_certificate:params.salary_certificate,
			vip_bank_card_type:params.vip_bank_card_type,
			vip_bank_card:params.vip_bank_card,
			business_license:params.business_license,
			mortgage_user_fee:params.mortgage_user_fee,
			mortgage_user_certificate:params.mortgage_user_certificate,
			usable_loan_quota:params.usable_loan_quota,
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/YxLoanArchive/add', data })
	},
}